﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>无标题页</title>
    <script language="javascript" type="text/jscript">
    //document.getElementById("ifr")
    function test()
    {
        alert(3);
    }
    function t()
    {
        var elem = document.createElement("iframe");
        elem.id = "ifr";
        elem.onload = test;
        document.body.appendChild(elem);
        elem.src = "../Default.aspx";
    }
    </script>
</head>
<body onload="t()">
<input type="button" value="测试" onclick="t();"/>
<!--<iframe src="../Default.aspx" id="ifr" onload="test()"></iframe>
--></body>
</html>
